package com.dacel.ergraph.core.dao.hibernate;

import org.springframework.dao.DataAccessException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.dacel.ergraph.api.dao.BaseDao;

public class HibernateAbstractDao extends HibernateDaoSupport implements BaseDao {

	public void delete(Object o) throws DataAccessException {
		getHibernateTemplate().delete(o);
	}

	public Object getById(Class clazz, int id) throws DataAccessException {
		return getHibernateTemplate().get(clazz, id);
	}

}
